package com.gtw.modules.dao;

import com.gtw.modules.entity.TbDividends;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface TbDividendsDao extends BaseDao<TbDividends>{

    int deleteByPrimaryKey(Integer id);

    int insert(TbDividends record);

    int insertSelective(TbDividends record);

    TbDividends selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(TbDividends record);

    int updateByPrimaryKey(TbDividends record);

    List<TbDividends> fountList();

    /**
     * 获取全球分红数据
     * @return
     */
    List<TbDividends> queryByType0();

    TbDividends queryByLevel(Integer level);


    /**
     * 获取代理分红数据
     * @return
     */
    List<TbDividends> queryByType1();

    TbDividends queryByLevel2(Integer level);
}